{case value="text"}
    <input name="{$_item.name}" type="text" class="form-control" value="{$_data[$_item['name']]|addslashes}">
{/case}